<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE HTML>
<html>
<head>
<title>入学申请页面</title>
</head>
<body>
	<div class="rrcc" id="RightBox">
		<div class="center" id="Mobile" onClick="show_menuC()"></div>
		<div class="right" id="li010">
			<div style="width:93%;margin: 0 auto;padding: 20px 0px;">
				<script type="text/javascript">
					function checkCourse() {
						var inputs = document.form.courseId;
						var hasChecked = false;
						var span = document.getElementById("s1");
						for ( var i = 0; i < inputs.length; i++) {
							if (inputs[i].checked) {
								hasChecked = true;
							}
						}
						if (!hasChecked) {
							span.innerHTML = "请选择一门课程";
							return false;
						} else {
							span.innerText = "";
							return true;
						}
					}

					function formSubmit() {
						var form = document.forms[0];
						form.submit();
					}
				</script>
				<br />
				<form name="form"
					action="${pageContext.request.contextPath}/customer/process/doApply.do"
					method="post" onsubmit="">
					<table>
						<tr>
							<td width="130px" align="right" height="45px">请选择您的意向课程：</td>
							<td><input type="radio" name="intentionCourse"
								value="JAVA_YUN" onBlur="checkCourse()">JavaEE+Android课程&nbsp;&nbsp;&nbsp;

								<input type="radio" name="intentionCourse"
								value="NET_WINDOWPHONE" onBlur="checkCourse()">Net+WindowPhone课程&nbsp;&nbsp;&nbsp;

								<input type="radio" name="intentionCourse" value="JAVA_ANDROID"
								onBlur="checkCourse()">JavaEE+物联云计算课程&nbsp;&nbsp;&nbsp;
								<span id="s1" style="color: red;padding-left: 10px;"></span>
							</td>
						</tr>
						<tr>
							<td colspan="2" height="80px;">
								<div
									style="background:url('${pageContext.request.contextPath}/images/front/images/customer/pic_button01.gif') no-repeat left top;width:110px; height:42px; padding-left:10px;">
									<a href="javascript:formSubmit();"
										style="outline:0 none; border:0 none; background:url('${pageContext.request.contextPath}/images/front/images/customer/pic_button01.gif') no-repeat right top;width:120px; height:42px;font-size:20px;color:#FFF;font-weight: bold;cursor:hand">提交</a>
								</div>
							</td>
						</tr>
					</table>
				</form>
			</div>
		</div>
	</div>
</body>
</html>


